const express = require('express');
const app = express();
//1、导入路由模块
const router = require('./03.router.js');
//2、注册路由模块
//注意app.use()函数的作用，就是来注册中间件的
app.use(router);

app.listen(80, () => {
    console.log('server is running at http://127.0.0.1:80');
});